package com.wujunshen.designpattern.creational.factory.abstractfactory;

import com.wujunshen.designpattern.creational.factory.INewEnergyVehicle;
import com.wujunshen.designpattern.creational.factory.IVehicle;
import com.wujunshen.designpattern.creational.factory.abstractfactory.product.BrandTwoNewEnergyVehicle;
import com.wujunshen.designpattern.creational.factory.abstractfactory.product.BrandTwoVehicle;

/**
 * @author frank woo(吴峻申) <br>
 *     email:<a href="mailto:frank_wjs@hotmail.com">frank_wjs@hotmail.com</a> <br>
 * @date 2021/8/11 17:15<br>
 */
public class BrandTwoFactory implements VehicleFactory {
  @Override
  public IVehicle createVehicleProduct() {
    return new BrandTwoVehicle();
  }

  @Override
  public INewEnergyVehicle createNewEnergyVehicleProduct() {
    return new BrandTwoNewEnergyVehicle();
  }
}
